Skip to content

fix(event): Fix Duplicate event notification delivery#34

Merged
weilaaa merged 1 commit intomainfrom
fix/event_send_duplicate
Nov 26, 2025
Merged

fix(event): Fix Duplicate event notification delivery#34
weilaaa merged 1 commit intomainfrom
fix/event_send_duplicate

Conversation

@thinker8581
Copy link
Collaborator

Previously, if multiple subscription rules matched an event and pointed to the same notification target (e.g., the same webhook endpoint or chat ID), multiple identical notifications would be sent.

This change modifies the create_notice_details service to track sent notifications using a set of unique tuples (event_id, channel, target). This ensures that a notification is delivered only once per unique target, even if triggered by multiple subscriptions.

Change-Id: Ibcba09bc62d43d64ddca4862abf44232b74d43bc

Previously, if multiple subscription rules matched an event and pointed to the same notification target (e.g., the same webhook endpoint or chat ID), multiple identical notifications would be sent.

This change modifies the `create_notice_details` service to track sent notifications using a set of unique tuples `(event_id, channel, target)`. This ensures that a notification is delivered only once per unique target, even if triggered by multiple subscriptions.

Change-Id: Ibcba09bc62d43d64ddca4862abf44232b74d43bc
Copy link
Collaborator

@weilaaa weilaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@weilaaa weilaaa merged commit 496228f into main Nov 26, 2025
8 checks passed
@weilaaa weilaaa deleted the fix/event_send_duplicate branch November 26, 2025 02:45
weilaaa pushed a commit that referenced this pull request Nov 26, 2025
Previously, if multiple subscription rules matched an event and pointed
to the same notification target (e.g., the same webhook endpoint or chat
ID), multiple identical notifications would be sent.

This change modifies the `create_notice_details` service to track sent
notifications using a set of unique tuples `(event_id, channel,
target)`. This ensures that a notification is delivered only once per
unique target, even if triggered by multiple subscriptions.

Change-Id: Ibcba09bc62d43d64ddca4862abf44232b74d43bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants